<template>
	<view>
		<view v-for="item,index in goodsList">
			<goods-card :goods='item'></goods-card>
		</view>
		
	</view>
</template>

<script>
	import {
		getIndex
	} from '../../config/api.js';
	
	export default {
		data() {
			return {
				goodsList:[]
			}
		},
		methods: {
			
		},
		async onLoad(){
			const indexData = await getIndex()
			this.goodsList = [...this.goodsList, ...indexData.goods.data]
		}
	}
</script>

<style>

</style>
